export default {
  createStore:{//创建商店
    url: '/mall/store/create',
    require:['token','clientid']//departmentId、name、description、logo、phone、address、contacts、position、data
  },
  delStore:{//删除商店
    url: '/mall/store/delete',
    require:['token','clientid','departmentId']//
  },
  getStore:{//获取商店
    url: '/mall/store/get',
    require:['token','clientid','departmentId']//
  },
  getStoreList:{//获取商店
    url: '/mall/store/list',
    require:['token','clientid']//
  },
  updateStore:{//修改商店
    url: '/mall/store/update',
    require:['token','clientid','departmentId']//name(选)、description(选)、logo(选)、phone(选)、address(选)、contacts(选)、position(选)、data(选)、enabled(选)、unavailableReason(选)
  },
  createMallGoods:{//创建商品
    url: '/mall/goods/create',
    require:['token','clientid']//departmentId、title、productSpecId(选，json数组格式)、data(选)、goodTypeId
  },
  setGoods:{//设置
    url: '/mall/goods/setGoods',
    require:['token','clientid']//id、title(选)、html(选)、data(选)、productSpecId、type
  },
  delMallGoods:{//删除商品
    url: '/mall/goods/delete',
    require:['token','clientid','id']
  },
  updateMallGoods:{//更新商品
    url: '/mall/goods/update',
    require:['token','clientid','id']//title(选)、html(选)、data(选)、state(选)、goodTypeId(选)
  },
  getMallGoods:{//获取商品
    url: '/mall/goods/get',
    require:['token','clientid','id']
  },
  getMallGoodsList:{//获取商品列表
    url: '/mall/goods/list',
    require:['token','clientid']//page、size(选)、departmentId(选)、state(选)、goodsTypeId(选),key(选)
  },
  createMallGoodsSku:{//创建商品sku
    url: '/mall/goodsSku/create',
    require:['token','clientid']//goodsId、props、sn、price、data(选)
  },
  delMallGoodsSku:{//删除商品sku
    url: '/mall/goodsSku/delete',
    require:['token','clientid','id']
  },
  updateMallGoodsSku:{//更新商品sku
    url: '/mall/goodsSku/update',
    require:['token','clientid','id']//props(选)、price(选)、data(选)、sn(选)
  },
  getMallGoodsSku:{//获取商品规格
    url: '/mall/goodsSku/get',
    require:['token','clientid','id']
  },
  getMallGoodsSkuList:{//获取商品规格列表
    url: '/mall/goodsSku/list',
    require:['token','clientid']//goodsId,sn
  },
  createMallGoodsType:{//创建商品类型
    url: '/mall/goodsType/create',
    require:['token','clientid','name']//data
  },
  deleteMallGoodsType:{//删除商品类型
    url: '/mall/goodsType/delete',
    require:['token','clientid','id']
  },
  updateMallGoodsType:{//更新商品类型
    url: '/mall/goodsType/update',
    require:['token','clientid','id']//name,data
  },
  getMallGoodsType:{//获取商品类型
    url: '/mall/goodsType/get',
    require:['token','clientid','id']
  },
  getMallGoodsTypeList:{//获取商品类型列表
    url: '/mall/goodsType/list',
    require:['token','clientid']
  },
}
